﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_Flow_DeleteBangdingTeam]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_Flow_DeleteBangdingTeam];
GO
CREATE PROCEDURE [dbo].[sproc_Flow_DeleteBangdingTeam]
    @FlowID int,
    @StepID int,
    @TeamID int
AS
DELETE FROM UDS_Flow_Member_Bind
    WHERE      Flow_ID = @FlowID 
        and Step_ID = @StepID 
        and Obj_ID = @TeamID 
        and Obj_Type =2